home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Network Support Library
/
RoseWare - Network Support Library.iso
/
dirmgmt
/
checkl.arc
/
CHECKLOG.TXT
< prev
next >
Wrap
Text File
|
1989-03-21
|
2KB
|
54 lines
Using Check.com to alert users to low network disk space
PC Magazine's Check.com is a useful program that returns various
errorlevels for different parameters. One of these parameters is free
disk space. With Netware 2.1+, the system supervisor can limit users'
usage of file server disk space. Unfortunately, this also limits the
size of files they can print, as the temporary spooler files are charged
to users' "account".
Until a future Netware version gives supervisors a way of excluding
network printer spooler files from the disk space limitation, one must
devise work-arounds. One such work-around is to check the amount of
diskspace remaining during login, warn the user if it falls too low, and
present the user with alternative courses of action (such as moving files
from network drives to local drives for storage).
Check.com for this purpose takes the parameter "diskspace". The
errorlevel returned corresponds to 16 kbyte blocks. Thus an errorlevel
of "C" (hexadecimal) corresponds to decimal 12, or 192 kbytes disk space
for that user remaining.
Here is a sample batch file for checking diskspace at login. The
batch file should be called as the last command in all users' login
scripts.
echo off
check diskspace
if errorlevel C goto :ok
if errorlevel 0 goto :warning
goto :ok
:warning
echo Warning: You have less than 200 kbytes of network disk space left
pause
task 5 Do you want to use a utility to free up needed disk space now?
if errorlevel 1 goto :nofree
if errorlevel 0 goto :free
:free
dc
:nofree
:ok
Please note two other public domain programs used in this file,
task.com and dc.com. They are included in this archive, checklog.arc.
Finally, other programs, such as Paradox, write temporary files to
disk as part of their normal operations. In the case of Paradox, these
files include lock files, and answer tables. If the answer table is
large, it could easily generate an error message (out of disk space) on a
disk-space-limited network. Thus the above batch file could be modified
and included in the Paradox menu option to alert users to low disk space.
Hopefully Novell will enhance Netware so supervisors can exclude volumes,
directories, and even files from the disk space limitation count.
-=rich adams=-
3/21/89 El Cerrito, California